package cn.tedu.jdbc;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Collection;

public class HomeWork3 {
    public static void main(String[] args) {
        Connection c=null;
        PreparedStatement p=null;
        ResultSet r=null;
        try {
            c= JDBCUtils2.get();
            String sql= "insert into user  " +
                    "values(5,'lucy',123)";
            p=c.prepareStatement(sql);
          p.executeUpdate();
        } catch (Exception e) {
            e.printStackTrace();
        }finally {
            JDBCUtils2.close(null,p,c);
        }
    }
}
